<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>{block name="title"}Final CMS{/block}</title>
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <link rel="stylesheet" href="/static/css/layui.css">
    <link rel="stylesheet" href="/static/css/style.css">
    {block name="css"}{/block}
    <style>{block name="style"}{/block}</style>
</head>

<body style = "height:100%;">
    <div class = "framework">
        <ul class="layui-nav">
            {$menu}
            <li class = "layui-nav-item" style = "float:right;">
                <a href="">我</a>
                <dl class="layui-nav-child">
                    <dd>
                        <a href="javascript:;" >{$u_info['user_name']} <span class="caret"></span></a>
                    </dd>
                    <dd>
                        <li><a href="{:url('home/Login/logOut')}">退出</a></li>
                    </dd>
                </dl>
            </li>
        </ul>

        <div class = "main">
            <div class = "left-menu">
                <ul class="layui-nav layui-nav-tree" lay-filter="test">
                    {$submenu}
                </ul>
            </div>
            {if condition="isset($third_menu) && count($third_menu)>=1"}
            <div class = "content">
                <div class="alert alert-success" id = "isuccess" style = "display: none;"></div>
                <div class="alert alert-info" id = "iinfo" style = "display: none;"></div>
                <div class="alert alert-warning" id = "iwarning" style = "display: none;"></div>
                <div class="alert alert-danger" id = "idanger" style = "display: none;"></div>
                <div class = "layui-tab layui-tab-brief">
                    <ul class="layui-tab-title">
                        {volist name="third_menu" id="vo" key="k"}
                        {if condition="strtolower(url($vo['url'])) eq strtolower($base_uri)"}
                        <li class="active">
                            {if condition="isset($vo['param'])"}
                                <a href="{:url($vo['url'],$vo['param'])}">
                            {else /}
                                    <a href="{:url($vo['url'])}">
                            {/if}
                            {$vo.text}</a>
                        </li>
                        {else /}
                        <li>
                            {if condition="isset($vo['param'])"}
                            <a href="{:url($vo['url'],$vo['param'])}">
                                {else /}
                                <a href="{:url($vo['url'])}">
                                    {/if}{$vo.text}</a>
                        </li>
                        {/if}
                        {/volist}
                    </ul>
                </div>

                {/if}
                <div class="layui-tab-content">
                    {block name="main"}{/block}
                </div>

            </div>

        </div>

    </div>
</body>
<script src = "/static/js/layui.js"></script>
<script src="/static/js/jquery-3.3.1.min.js"></script>
<script src = "/static/js/framework.js"></script>
{block name="js"}{/block}
<script>
    layui.use(['element','form','layer','laypage','laydate'], function(){
        var element = layui.element;
        var form = layui.form;
        var laypage = layui.laypage;
        var laydate = layui.laydate;
        $(".layui-date").each(function(){
            laydate.render({
                elem:this
            })
        });
    });
</script>
<script>{block name="script"}{/block}</script>
</html>